package org.learn.spring5.bean;

//学生类
public class Student {

    //学生名称
    private String studentName;
    //学生的年龄
    private String age;

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public void setClasses(Classes classes) {
        this.classes = classes;
    }

    //学生所属的班级
    private Classes classes;


    public Classes getClasses() {
        return classes;
    }

    public void add() {
        System.out.println("studentName:" + studentName + "----" + "age:" + age);
        System.out.println("classes:" + classes);
    }
}
